﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Login</title>
    <link rel="shortcut icon" href="/images/acm.ico" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="https://kao.acmcoder.com/css/all-exam.css" />
    <link rel="stylesheet" type="text/css" href="https://kao.acmcoder.com/css/user/login.css"  />
    <link rel="stylesheet" type="text/css" href="https://kao.acmcoder.com/css/comp/comp-enterprise.css" />

</head>
<body>
    <!--head-->
    <div class="head">
        <div class="head-bar public">
            <div class="logo">
                <a href="javascript:if(confirm('https://kao.acmcoder.com/  \n\n���ļ��޷��� Teleport Ultra ����, ��Ϊ ����һ�����·���ⲿ������Ϊ������ʼ��ַ�ĵ�ַ��  \n\n�����ڷ������ϴ���?'))window.location='https://kao.acmcoder.com/'" tppabs="https://kao.acmcoder.com/"><img src="logo.png" tppabs="https://kao.acmcoder.com/images/logo.png" /></a>
                <p><span>家用版</span></p>
            </div>
        </div>
    </div>
    <!--head  end-->
    <div class="main-box">
        <div class="userCnt">
            <div class="loginCnt">
                <h1>登录</h1>
                    <div class="login-box">
                        <ul>
                            <li>
                                <input type="text" name="phone" id="phone" class="login-text input" placeholder="请输入手机号" maxlength="11" />
                            </li>
                            <li>
                                <input type="password" name="pwd" id="pwd" class="login-text input" placeholder="请输入密码" maxlength="20" />
                            </li>

                            <li>
                                <input type="button" value="登录" id="sbtn" class="login-btn btn" />
                            </li>
                            <li class="login-t">
                                <a href="/Login/toFindPwd">忘记密码？</a>
                                <div class="clear"></div>
                            </li>
                        </ul>
                    </div>
              
                <div class="login-f">
                    还没有账号，<a href="/Login/register" >马上注册 >></a>
                </div>
            </div>
        </div>
    </div>
    <script src="https://kao.acmcoder.com/js/jquery.min.js"  type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="https://cdn.acmcoder.com/static/1.0.1/js/jquery.cookie.js" ></script>
    <script src="https://kao.acmcoder.com/js/footer-exam.js" ></script>
    <script src="https://kao.acmcoder.com/js/all.js"  type="text/javascript" charset="utf-8"></script>
    <script src="https://kao.acmcoder.com/js/check/dataCheck.js?v=1"  type="text/javascript" charset="utf-8"></script>
    <script src="https://kao.acmcoder.com/js/check/md5.js"  type="text/javascript" charset="utf-8"></script>
</body>
</html>
<script>
    $("#sbtn").click(function () {
        $.ajax({
            uel: "/Login/Login",
            type: "POst",
            data: { phone: $("#phone").val(), pwd: $("#pwd").val() },
            success:function(data)
            {
                if(data==-1)
                {
                    alert("请核对信息，重新填写")
                }
                else if(data==0)
                {
                    alert("登录失败");
                    $("#phone").val();
                    $("#pwd").val();
                    $("#phone").focus();
                }
                else if(data>0)
                {
                    location.href = "/HomePage/Index";
                }
            }
        })
    })
</script>

